#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#define BOOL short
#define TRUE 1
#define FALSE 0


char base[] = "0123456789abcdefABCDEF";

BOOL is_hex (char ch) {
	for (int i = 0; i < strlen(base); i++) {
		if (ch == base[i]) {
			return TRUE;
		}
	}
	return FALSE;
}

int main() {
	char s[1024];
	scanf("%s", &s);
	if (strlen(s) != 32) {
		printf("No\n");
		return 0;
	}

	for (int i = 0; i < strlen(s); i++) {
		if (FALSE == is_hex(s[i])) {
			printf("No\n");
			return 0;
		}
	}
	printf("Yes\n");
	return 0;
}